<template>
  <div>
    C
    <button @click="remove">移除C事件</button>
  </div>
</template>

<script setup lang="ts">
import eventBus from '../../eventBus';
const index = eventBus.on('me', (name: string) => {
  console.log(name)
})
const remove = () => {
  eventBus.off('me', index)
}
</script>

<style scoped>

</style>